home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl2 / qu2dos10.zip / QUIT2DOS.TXT < prev   
Text File  |  1996-04-25  |  9KB  |  196 lines

  1.  
  2.                                QUIT2DOS
  3.         Return to the C:\ prompt when exiting from Windows 95 
  4.  
  5.                A free utility from Bardon Data Systems
  6.                         http://www.bardon.com
  7.  
  8. Windows 95 is excellent, no doubt about it.  It includes many undeniable 
  9. improvements over Windows 3.  However, its many improvements do not 
  10. include the elimination of DOS.  This is not a weakness in Win95, but 
  11. rather a useful design consideration.  By retaining DOS, Windows 95 
  12. attains a level of backwards compatibility that is nothing short of 
  13. incredible.  Microsoft's system designers should be very proud of this 
  14. almost magical feature.
  15.  
  16. They don't seem to be.  They have set up Win95 to hide as many traces of 
  17. DOS7 as possible.  It's as if they don't want you to know it's there.  
  18.  
  19. But it is.  When you start Windows 95, you are actually first booting 
  20. DOS7.  A big "booting" difference between DOS7+Win95 versus DOS6+Win3 is 
  21. this: by default when you boot DOS7, after it loads any config.sys and/or 
  22. autoexec.bat, DOS7 automatically runs the command "win" ...  yes, the same 
  23. command you used to type yourself to run Windows 3.x from DOS6.  
  24.  
  25. Later, when you exit from Windows 95, there's another bit of magic which 
  26. (in the default setup) prevents the C:\ prompt from being displayed.  
  27. Remember, you have exited from Win95, just like you used to exit from 
  28. Win3.  In both cases, you're back in DOS.  So where's the DOS7 prompt?  
  29.  
  30. It's under the screen that says "It's now safe to turn off your computer", 
  31. that's where.  It's the same old DOS prompt as before.  You can get to it, 
  32. but it takes a bit of doing.  
  33.  
  34. QUIT2DOS is designed to do it all for you.  When you run QUIT2DOS from 
  35. Windows 95, it sets a switch to allow you to boot manually.  Then it adds 
  36. a "win" command to your AUTOEXEC.BAT file to run Windows 95 automatically 
  37. at startup.  Now I can hear you wondering, "why make it boot manually, and 
  38. then re-make it automatic again?"  You're right, it makes little difference 
  39. at startup.  The difference comes when you shut down Win95, because by doing 
  40. it this way you regain the option of running the C:\ prompt after exiting 
  41. from Win95.  
  42.  
  43. After running QUIT2DOS (and rebooting your system, once, to set everything 
  44. up), then when you exit from Win95 you can type MODE CO80 at the "safe to 
  45. turn off your computer" screen, and voila!  There's the C:\ prompt.  Note 
  46. that you lose nothing by using this option; it's still "safe to turn off 
  47. your computer" at that screen.  MODE CO80 simply sets your screen back into 
  48. 80-column color mode, clearing the "safe" bitmap from your screen in the 
  49. process.  
  50.  
  51. Specifically, here's what QUIT2DOS does.  First, it sets the BootGUI flag 
  52. in your MSDOS.SYS file to 0, so DOS7 won't automatically run Windows.  
  53. Then it adds the command WIN at the end of your autoexec.bat file.  It'll 
  54. create an autoexec.bat for you if you don't have one.  Finally, it 
  55. replaces the "safe to turn off your computer" bitmap that Win95 displays 
  56. at exit.  It's in your Windows directory, and is called LOGOS.SYS 
  57. although it is actually a BMP file, not a SYS file.  
  58.  
  59. The "replacement" bitmap includes instructions on how to get back to the 
  60. DOS prompt by typing MODE CO80 as described above.  Once you're at the 
  61. DOS prompt you can type "win" at any time to restart Windows 95.  
  62.  
  63.  
  64.  
  65. HOW TO USE QUIT2DOS
  66.  
  67. Run QUIT2DOS.EXE from Windows 95.  It'll do everything automatically.
  68.  
  69. All three QUIT2DOS files (QUIT2DOS.EXE, QUIT2DOS.BMP and QUIT2DOS.TXT) 
  70. need to be in the same directory.  After running QUIT2DOS, reboot your 
  71. system.  Beginning with that reboot, whenever you exit from Win95 you 
  72. can get back to the DOS prompt if you want.
  73.  
  74. Note: some laptops are configured to actually power down the computer 
  75. when exiting from Windows 95.  QUIT2DOS does not interfere with this 
  76. behavior, so it will be of little use for owners of computers configured 
  77. in this way.  To use QUIT2DOS with such a computer, you must first 
  78. reconfigure the machine so it doesn't turn off the power when you exit 
  79. from Win95. 
  80.  
  81.  
  82.  
  83. BOOTING TO "SAFE MODE"
  84.  
  85. Occasionally you may need to start your computer in "safe mode."  To do 
  86. this, you hold down the F8 key while booting, and when the menu appears,
  87. you choose Safe Mode.  Normally, the system then starts Windows 95 in 
  88. "safe mode."  But QUIT2DOS sets up your system so it doesn't automatically 
  89. start Windows 95.  QUIT2DOS compensates for doing this by adding a call to 
  90. "win" at the end of your AUTOEXEC.BAT, but in "safe mode" the system 
  91. doesn't run your AUTOEXEC.BAT at startup.  Consequently, when you select 
  92. Safe Mode from the menu, you wind up at the command prompt.  Not to worry.  
  93. Just type WIN at the prompt and hit Enter.  You'll start Windows 95 in 
  94. "safe mode."
  95.  
  96.  
  97.  
  98. BOOTING TO "COMMAND PROMPT ONLY"
  99.  
  100. This is similar to the business about "safe mode."  Occasionally you may 
  101. want to start your system at the DOS7 prompt instead of going right into 
  102. Windows 95.  (Note that if you want to ALWAYS start at the DOS7 prompt, 
  103. remove the WIN call which QUIT2DOS added to your AUTOEXEC.BAT file.  
  104. You'll boot to DOS.  When you want to run Windows 95, type WIN and hit 
  105. Enter.)
  106.  
  107. To OCCASIONALLY boot to DOS7 at startup, you hold down the F8 key while 
  108. booting.  Normally, when the menu appears, you'd choose Command Prompt 
  109. Only.  But this option runs your AUTOEXEC.BAT file, and QUIT2DOS has set 
  110. up your AUTOEXEC.BAT so at the end it will start Windows 95.  Not what you
  111. wanted to do.
  112.  
  113. There are two solutions.  The F8 menu offers a Step-By-Step Confirmation 
  114. option, which lets you step through all your boot options, including every 
  115. line of your AUTOEXEC.BAT file.  Answer Y (yes) to every "run this line?" 
  116. request until you get to the WIN line that starts Windows 95. To that line, 
  117. answer N (no).  You'll boot to the DOS7 prompt.
  118.  
  119. This is admittedly tedious.  It is perhaps acceptable for occasional needs, 
  120. but if you want to be given the "DOS7 vs. Win95" option every time you boot,
  121. add these lines to your AUTOEXEC.BAT file, just above the WIN call placed 
  122. at the end of the file by QUIT2DOS (the WIN call is indicated below to show
  123. how it all fits together):
  124.  
  125.   cls
  126.   echo If you want to start Windows 95, press any key
  127.   echo If you want to go to the DOS prompt, press Ctrl+C
  128.   pause
  129.   WIN <--- was previously inserted by QUIT2DOS
  130.  
  131. With this in place, you'll hit any key to continue into Windows 95, or type 
  132. Ctrl+C to exit from your AUTOEXEC.BAT before running the WIN command.
  133.  
  134.  
  135.  
  136. HOW TO SET THINGS BACK THE WAY THEY WERE
  137.  
  138. To undo the QUIT2DOS changes, you need to replace the "safe to turn off" 
  139. bitmap, change a flag in MSDOS.SYS, and remove the "win" call in your 
  140. AUTOEXEC.BAT.
  141.  
  142. 1) The original "safe to turn off" bitmap was saved in your Windows directory 
  143. as LOGOS0.SYS.  Delete the replacement LOGOS.SYS and rename LOGOS0.SYS back 
  144. to LOGOS.SYS.
  145.  
  146. 2) Use Notepad or any text editor to edit MSDOS.SYS (it's in your boot-drive 
  147. root directory) and set its BootGUI flag to 1.  MSDOS.SYS may be set as read-
  148. only; if so, right-click on the file in Explorer to change its Properties,
  149. and un-check the "Read-only" box.  Then you can edit the file.
  150.  
  151. 3) Edit your AUTOEXEC.BAT file (also in your boot-drive root directory) and 
  152. remove the call to "win" at the bottom.  
  153.  
  154.  
  155.  
  156. BARDON DATA SYSTEMS
  157.  
  158. Bardon Data Systems makes software for all versions of Windows.  Products 
  159. include power-user tools, an entertainment/humor series, a "parental control" 
  160. security access oversight application, fax enhancement software, and more.  
  161. Drop by the Bardon home page (http://www.bardon.com) and take a look.  Bet 
  162. you find something you like.  There are free gifts there too (such as 
  163. QUIT2DOS), our "thank you" for stopping by.  
  164.  
  165.  
  166.  
  167. LEGAL STUFF
  168.  
  169. QUIT2DOS is Copyright 1996 Barry Smiler, Bardon Data Systems.  No fee is 
  170. required for its use. It can be freely distributed through any channel,   
  171. including online services, BBSs, Internet sites, CD-ROMs, vendor offerings, 
  172. book/disk sets, and in any other way, as long as all QUIT2DOS files are 
  173. included unchanged as supplied in this package.
  174.  
  175. QUIT2DOS is provided "as is" without warranty of any kind, either 
  176. expressed or implied, including but not limited to implied warranties of 
  177. merchantability and fitness for a particular purpose.  In no event shall 
  178. Barry Smiler or Bardon Data Systems be liable for any damages whatsoever 
  179. including direct, indirect, incidental, consequential, loss of business 
  180. profits or special damages, even if the author has been advised of the 
  181. possibility of such damages.  
  182.  
  183.  
  184.  
  185. REVISION HISTORY
  186.  
  187. QUIT2DOS 1.0 released April 25 1996
  188.  
  189.  
  190. Bardon Data Systems
  191. 1023 Key Route Blvd.
  192. Albany CA 94706 USA
  193. (510) 526-8470
  194. 72340.375@compuserve.com
  195. info@bardon.com
  196. http://www.bardon.com